import torch

A = torch.arange(20).reshape(5, -1)
print(A)
B = A.T
print(B)

B = torch.tensor([[1,2,3],[2,0,4],[3,4,5]])
print(B == B.T)